﻿using System;
using System.ComponentModel.DataAnnotations;
using Data.AggregateRoot;

namespace Data.Entities
{
    /// <summary>
    /// 模块权限
    /// </summary>
    public class SysPermission : EntityBase
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        [Required]
        public Guid RoleId { get; set; }
        /// <summary>
        /// 模块Id
        /// </summary>
        [Required]
        public Guid ModuleId { get; set; }
    }
}